package com.gitease.quickhub.model;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.OffsetDateTime;

@Entity
@Table(name = "repositories")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Repository {
    
    @Id
    private Long id;
    private String name;
    private String fullName;
    private String description;
    private String htmlUrl;
    private String sshUrl;
    private String cloneUrl;
    private String defaultBranch;
    private boolean isPrivate;
    private boolean fork;
    private int stargazersCount;
    private int watchersCount;
    private int forksCount;
    private int openIssuesCount;
    private OffsetDateTime createdAt;
    private OffsetDateTime updatedAt;
    private OffsetDateTime pushedAt;
    private Long ownerId;
}